﻿namespace TestApp.Contracts
{
    using System;
    using System.ServiceModel;

    [ServiceContract(CallbackContract = typeof(IDataServiceCallback))]
    public interface IDataService : IDisposable
    {
        [OperationContract]
        Guid Subscribe(int index);

        [OperationContract]
        Guid SubscribeToAll();

        [OperationContract]
        void Unsubscribe(Guid subscriptionId);

        [OperationContract]
        void Ping(Guid subscriptionId);
    }
}